namespace CSharpPro._1027;

public class Demo
{
    private int id;
    private string name;
    private int age;

    public int Id
    {
        get => id;
        set => id = value;
    }

    public string Name
    {
        get => name;
        set => name = value??throw new ArgumentNullException(nameof (value));
    }
    
    public int Age {
        get => age;
        set => age = value;
    }
    
    
    
    
    public void TestPrint()
    {
        Parent p = new Parent();
        p.Print();
        Child child = new Child();
        child.Print();
        child.Play();
        Parent p1 = new Parent();
        p1.Print();
        
        
        // int result = Add(10, 20);
        //Console.WriteLine(result);
    }
    
    
    
    
    
    public int Add(int a, int b)
    {
        return a + b;
    }

    public string Add(string a, string b)
    {
        return a + b;
    }
  
    
}